package com.airbnb.mvrx.sample.features.book.views

import android.content.Context
import android.support.v7.widget.GridLayoutManager
import android.util.AttributeSet
import com.airbnb.epoxy.EpoxyRecyclerView

class GridEpoxyRecyclerView @JvmOverloads constructor(
        context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)
    : EpoxyRecyclerView(context, attrs, defStyleAttr) {

    override fun createLayoutManager(): LayoutManager {
        return GridLayoutManager(context, 2, GridLayoutManager.HORIZONTAL, false)
    }

}